package system_design.home.shiti;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LENOVO
 * Date: 2022-01-05
 * Time: 16:28
 */
public class Department {
    private int commodityNum;
    private String name;
    private double money;
    private int commodityInventory;

    public Department(int commodityNum, String name, double money, int commodityInventory){
        this.commodityNum = commodityNum;
        this.name = name;
        this.money = money;
        this.commodityInventory = commodityInventory;
    }

    public int getCommodityNum() {
        return commodityNum;
    }

    public void setCommodityNum(int commodityNum) {
        this.commodityNum = commodityNum;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public int getCommodityInventory() {
        return commodityInventory;
    }

    public void setCommodityInventory(int commodityInventory) {
        this.commodityInventory = commodityInventory;
    }

    public String toString(){
        return this.commodityNum+" "+this.name+" "+this.money+" "+this.commodityInventory;
    }
}
